package test6;

public class Main {
    public static void main(String[] args) {
        System.out.println("666");

        int[] arr = {1,2,3,4};
        try {
            System.out.println(arr[10]);
            System.out.println(2/0);
            System.out.println("niu");

        }catch (ArithmeticException e){
            System.out.println("算数异常");
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("越界了");
        }

        System.out.println("666");
    }
}
